package com.scm.biz.dao;

import java.util.List;

import com.scm.biz.bean.Resource;

public interface ResourceDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Resource record);

    int insertSelective(Resource record);

    Resource selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Resource record);

    int updateByPrimaryKey(Resource record);
    
    List<Resource> selectListByUserId(int userId);
    
    List<Resource> selectListByRoleId(int roleId);
    
    List<Resource> selectChildList(String category,int len);
    List<Resource> selectList();
}